
package com.work.db.entity;

import java.io.Serializable;
import java.util.List;

import javax.persistence.*;

@Entity
@Table(name = "CLIENT")
public class Client extends BaseEntity implements Serializable {

	@Transient
	private static final long serialVersionUID = 8403620450986445125L;

	@Column(name = "NAME")
	private String name;

	@ManyToOne(optional = false)
	private Employer employer;

	@OneToMany(mappedBy = "client")
	private List<Project> projects;

	public Client()
	{
		super();
	}

	public String getName()
	{
		return name;
	}

	public void setName(String name)
	{
		this.name = name;
	}

	public Employer getEmployer()
	{
		return employer;
	}

	public void setEmployer(Employer employer)
	{
		this.employer = employer;
	}

	public List<Project> getProjects()
	{
		return projects;
	}

	public void setProjects(List<Project> projects)
	{
		this.projects = projects;
	}

}
